﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Adams.Public.Web.Controllers
{
    public class PagesController : Controller
    {
        [AppendLayoutViewModel]
        public ActionResult Index(Adams.Public.DataTransfer.Pages.GetPageInput input)
        {
            var model = Business.Web.Pages.Index.PageLoad(input);
            if (model.Page.ID == 0)
            {
                return HttpNotFound();
            }
            else
            {
                return View(model);
            }
        }

    }
}
